package com.cxria.activemq.web.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class WebAppListener implements ServletContextListener {

	private ServletContext application;

	public void contextDestroyed(ServletContextEvent event) {

	}

	public void contextInitialized(ServletContextEvent event) {
		application = event.getServletContext();
		application.setAttribute("root", application.getContextPath());
	}

}
